package com.luokun.vue_shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("sp_manager")
public class SpManager {
    //主键
    @TableId(type = IdType.AUTO)
    private int mgId;
    //名称
    private String mgName;
    //密码
    private String mgPwd;
    //注册时间
    private Date mgTime;
    //角色id
    private int roleId;
    //电话
    private String mgMobile;
    //邮箱
    private String mgEmail;
    //1：表示启用 0:表示禁用
    private int mgState;

    @Override
    public String toString() {
        return "SpManager{" +
                "mgId=" + mgId +
                ", mgName='" + mgName + '\'' +
                ", mgPwd='" + mgPwd + '\'' +
                ", mgTime=" + mgTime +
                ", roleId=" + roleId +
                ", mgMobile='" + mgMobile + '\'' +
                ", mgEmail='" + mgEmail + '\'' +
                ", mgState=" + mgState +
                '}';
    }
}
